<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table class="table">
		
		<tr>
			<td>ID</td>
			<td>品牌</td>
			<td>首字母</td>
		</tr>
		<c:forEach items="${page.list }" var="item">
			<tr>
				<td>${item.id }</td>
				<td>${item.name }</td>
				<td>${item.firstChar }</td>
			</tr>
		</c:forEach>
		
		<tr>
			<td align="center" colspan="3">
				<a href="javascript:goPage(${page.firstPage })">首页</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="javascript:goPage(${page.prePage })">上一页</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="javascript:goPage(${page.nextPage })">下一页</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="javascript:goPage(${page.lastPage })">尾页</a>
			</td>
		</tr>
	</table>
	<script type="text/javascript">
		function goPage(page){
			$("#content").load("./brand/list?currPage="+page)
		}
		
	</script>
</body>
</html>